package com.wzy.config;

import com.wzy.HelloSpring;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * Spring 配置类
 * @auth wzy
 * @date 2023/10/19 16:19
 */
@Configuration
@EnableAspectJAutoProxy
@ComponentScan(basePackages = "com.wzy")
public class AppConfig {

    @Bean
    public HelloSpring helloSpring(){
        HelloSpring helloSpring = new HelloSpring();
        helloSpring.setName("小黄");
        helloSpring.setAge(22);
        return helloSpring;
    }
}
